/**
 * 邀请活动首页
 * @type {string} GET
 * @param {string} { }
 */
export function homeIndex(data) {
	return new Promise(resolve => {
		uni.$u.http.get("/applet/inviteActivity/index", data).then(info => {
			resolve(info.result)
		})
	})
}

/**
 * 邀请记录
 * @type {string} GET
 * @param {string} { }
 */
export function inviteRecordList(data) {
	return new Promise(resolve => {
		uni.$u.http.get("/applet/inviteActivity/inviteRecordList", data).then(info => {
			resolve(info.result)
		})
	})
}

/**
 * 模板列表
 * @type {string} GET
 * @param {string} { }
 */
export function templateList(data) {
	return new Promise(resolve => {
		uni.$u.http.get("/applet/inviteActivity/templateList", data).then(info => {
			resolve(info.result)
		})
	})
}

/**
 * 生成客户海报
 * @type {string} POST
 * @param {string} { }
 */
export function createImages(data) {
	return new Promise(resolve => {
		uni.$u.http.post("/applet/inviteActivity/createImages", data).then(info => {
			resolve(info.result)
		})
	})
}

/**
 * 内容模板列表
 * @type {string} POST
 * @param {string} { }
 */
export function contentTemplateList(data) {
	return new Promise(resolve => {
		uni.$u.http.get("/applet/inviteActivity/contentTemplateList", data).then(info => {
			resolve(info.result)
		})
	})
}